home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / faq / comp / aux_faq / part3 / text0000.txt < prev   
Encoding:
Text File  |  1994-04-12  |  42.8 KB  |  1,028 lines

  1. Archive-name: aux-faq/part3
  2. Last-modified: Tue Apr 12 09:25:29 EDT 1994
  3.  
  4.          This is the Frequently Asked Question (FAQ) list for A/UX 3.x.x
  5.  
  6. \\\\\\\\\\\\\\\\\\\\\\ START OF PART 3 OF 3 //////////////////////
  7.  
  8. :::::::::::::::::::::::::::::::::::
  9. ::::: DEVICES AND PERIPHERALS :::::
  10. :::::::::::::::::::::::::::::::::::
  11.  
  12. =======================================================
  13. D.01)  Can I use my Teac|DAT|etc tape drive under A/UX?
  14. -------------------------------------------------------
  15.  
  16. A/UX 3.x.x's 'tc' device driver (version 1.40) officially and totally supports
  17. the following tape drives:
  18.  
  19.     Qualstar 9 track
  20.     Archive 4mm DAT
  21.     Archive QIC
  22.     Teac DCAS 600
  23.     Exabyte 8500        <<ED: no go with the 8200s>>
  24.     DC2000
  25.  
  26. Please note that all the devices except for the Qualstar 9-tracks require
  27. 8k-blocking when used through 'tc'. This means you will need to use 'tcb' or
  28. 'tbb' as a filter ('dd' will also work during reading). You should also
  29. specify 8k blocking (or a multiple thereof) when using dump.bsd.
  30.  
  31. Jim Jagielski has created a replacement for 'tc' called 'NEWtc'. It fixes
  32. a lot of Apple's 1.4 bugs as well as to provide some nice new features. It
  33. supports all the above drives in addition to:
  34.  
  35.     CIPHER drives
  36.     Exabyte 8200, 8205 and 8505
  37.     HP DATs
  38.     SONY SDT line
  39.     Teac DCAS 150 and 60
  40.     WangDAT 1300 and 2600 series
  41.     WankTEK series 6130 (FS/HF), 5525 and 5050ES.
  42.  
  43. It also has a "Generic" entry that will attempt to drive tapes it doesn't
  44. know about. If you have a drive that isn't supported, let Jim know and he'll
  45. try to add it.
  46.  
  47. NEWtc is up to version 3.32 and is available via anon-ftp on jagubox.
  48. Included in the package are replacement copies of 'mt', 'tc.7.Z' and 'mt.1.Z'.
  49.  
  50. Tony Cooper has written a VERY nice double-buffering copier that greatly
  51. increases the speed of backups; it's called 'tbb.' It works quite nicely with
  52. 'tc' (assuming the correct blocking factors)... It's included with the 'NEWtc'
  53. package.
  54.  
  55. Craig Ruff (cruff@ncar.ucar.edu) has written a Teac device driver also, which
  56. works with both the 150 MB and 60 MB drives. You get the complete source so
  57. you may "adjust" the driver if you want for other drives.
  58.  
  59. The Teac driver is available via anonymous ftp of jagubox.gsfc.nasa.gov.
  60.  
  61. %%% For more information about 'tc', please contact Jim via E-mail %%%
  62. %%% For more information about 'teac', please contact Craig via E-mail %%%
  63.  
  64. ===============================
  65. D.02)  EtherNet cards and A/UX
  66. -------------------------------
  67.  
  68. D.02)  I have an EtherNet card that works fine under the Macintosh OS
  69.        but not under A/UX. Why?
  70.  
  71. The reason is because to access the card (which is seen as a device by A/UX),
  72. you need an A/UX device driver for it. This is NOT the same as the stuff you
  73. had to install under the MacOS for it to work. Now A/UX includes drivers for
  74. the Apple EtherNet card (they aren't installed by default though), but they
  75. don't work with most of the 3rd party cards except for the 3Com "EtherLink
  76. NB", the Asante "MacCon" and the StarNet Networking cards. They are 100%
  77. register compatible with their Apple counterparts, so you can use Apple's
  78. 'ae' driver with them. Drivers for the EtherPort II cards are available via
  79. anon-ftp on jagubox. However, the drivers for the "old" EPII cards (full
  80. length) only support TCP/IP (they were written for A/UX 1.1 but will work
  81. under 2.0.x). As far as other cards are concerned, you will have to ask the
  82. vendor for A/UX drivers for it.
  83.  
  84. Please note that there have been numerous reports about problems with the
  85. EtherPortII cards, A/UX and the IIfx and IIsi... you are warned :)
  86.  
  87. =======================================
  88. D.03)  Can I use my scanner under A/UX?
  89. ---------------------------------------
  90.  
  91. A/UX 3.x.x fully supports the Apple OneScanner as well as providing better
  92. support for SCSI devices. A/UX will still use its own SCSI driver, however.
  93.  
  94. =====================================
  95. D.04)  Using SyQuest disks under A/UX
  96. -------------------------------------
  97.  
  98. D.04)  I'm trying to use a SyQuest drive under A/UX but it refuses to work.
  99.        I keep on getting a "more data than device expected" error message.
  100.        What's wrong?
  101.  
  102. The "problem" is with the generic SCSI disk driver under A/UX. For SCSI
  103. drives, there are certain parameters that may be adjusted by the user; these
  104. parameters are grouped in "pages." One such page concerns how the disk
  105. responds to and recovers from errors: the Error Recovery Page. A/UX expects
  106. the parameters in this page to have certain values. Now the vast majority of
  107. SCSI disks have the values set as expected, but this isn't the case with
  108. SyQuest drives. There is one parameter (PER) which is opposite than expected
  109. by A/UX. When A/UX trys to set this value to what it wants, however, the
  110. SyQuest drive reads this "request" wrong (the request is 16 bytes but the
  111. SyQuest only reads 4, so the SCSI Manager reports the error.
  112.  
  113. Tony Cooper (tony@marc.cri.nz) has written a Mac application which sets the
  114. Error Page values correctly: Fix Error Page. This application must be used
  115. under the MacOS. It can be found on jagubox.gsfc.nasa.gov as well as on
  116. aux.support.apple.com (aux.patches/unsupported/2.0). You can also use the
  117. FWB Hard Disk Toolkit - World Control Application to enable the PER bit in
  118. the recovery page (Page #1).
  119.  
  120. This program may also be a help in getting some SCSI-2 devices, such as disks
  121. and opticals, to work under A/UX. If A/UX sees that the Error Page parameters
  122. are incorrect, it will attempt to send a Mode Select command to fix them,
  123. however it will use the SCSI-1/CCS page length instead of the SCSI-2 length,
  124. which, depending on the drive, will not work.
  125.  
  126. By the by, here is the /etc/disktab entry for SyQuest:
  127.  
  128.     # SyQuest disk
  129.     #
  130.     Syquest|syquest|S45:\
  131.        :ty=winchester:ns#34:nt#2:nc#1275:
  132.  
  133. ==================================================
  134. D.05)  What 3-button mice work under A/UX (and X)?
  135. --------------------------------------------------
  136.  
  137. The Gravis SuperMouse was a 3-button mechanical mouse that was completely
  138. configurable and compatible with A/UX and was at the time your best bet.  At
  139. present, however, the Gravis SuperMouse is no longer manufactured or supported
  140. at _all_ by Gravis :(
  141.  
  142. The LogiTech MouseMan appears to be compatible with A/UX, as some people
  143. have been using it with no problems.
  144.  
  145. Mouse System's A-3 mouse is "fully" compatible with A/UX, but is hard-wired
  146. configured for A/UX as: Left Button = Actual Mouse Button; Middle Button =
  147. Left Arrow; Right Button = Right Arrow. The "A-3" power cdev doesn't work
  148. under A/UX. The A-3 mouse is an optical unit with a nice feel.
  149.  
  150. Please note that A/UX 2 & 3 only support a subset of the ADB Manager. Thus
  151. there are a few ADB devices that may not work under A/UX.
  152.  
  153. =====================================================
  154. D.06)  Is it worth getting a cache card for the IIci?
  155. -----------------------------------------------------
  156.  
  157. Absolutely! The card makes an amazing difference in performance. However,
  158. this performance increase is reduced when an external monitor is used. For
  159. more information about extensive benchmarking with the IIci and cache
  160. cards, you can snag the benchmarking results via anon-ftp on
  161. redstar.dcs.qmw.ac.uk in archive/papers.
  162.  
  163. ====================================================================
  164. D.07)  How can I figure out the /etc/disktab entry for my hard disk?
  165. --------------------------------------------------------------------
  166.  
  167. Many hard disk applications will reveal the disk drive geometry for you:
  168. FWB Hard Disk ToolKit is very good (SilverLining is a bit wrong on the number
  169. of tracks... it includes spares). What you are really looking for are the
  170. total number of cylinders ('nc'), the number of sectors per track ('ns') and
  171. the number of tracks ('nt'). Also, I'm maintaining a list of /etc/disktab
  172. entries. If you have any, send it to me and I'll add them.
  173.  
  174. The file is available via anon-ftp on jagubox.
  175. <<ED: I need _LOTS_ of entries>>
  176.  
  177. Just a note: the number of tracks ('nt') is equal to the number of heads.
  178.  
  179. ==========================================
  180. D.08)  Which serial cards work under A/UX?
  181. ------------------------------------------
  182.  
  183. There are a number of serial cards that "work" with A/UX. The Apple serial
  184. card is NOT one of them.
  185.  
  186.  o There is the Digiboard Nu/Xi, which comes in 4 and 8 port versions.  Brand
  187.    new drivers for the card have been coded and are available. This version
  188.    (3.3.0) however, doesn't currently work with CSlip but otherwise works
  189.    great.  You can snag the drivers via anon-ftp from digibd.com (which is
  190.    192.83.159.193) in drivers/mac.
  191.  
  192.    Technical Support for DigiBoard is 612-943-9020. If you'd like to contact
  193.    the main engineer responsible for the drivers, contact Brian Westley at the
  194.    following Email addresses:
  195.  
  196.       merlyn@digibd.com
  197.       ...uunet!digibd!merlyn
  198.       AppleLink: merlin
  199.  
  200. o There is also the Creative Solutions, INC (CSI) HQS/HDS v4.4/4.5 Hurdler
  201.   Serial Nubus cards. These cards have both pure UNIX _and_ MacOS device
  202.   drivers (i.e. a 'newconfig' code module and a MacOS INIT/DRVR module). The
  203.   A/UX drivers support baud rates up to 57.6k and 115.2k using the 'B50' and
  204.   'B75' flags, true hardware handshaking while monitoring DCD for Dialup
  205.   security, and full compatibility with CSlip and PPP and their associated
  206.   daemons. The A/UX-MacOS drivers are fully compatible with all CommToolbox
  207.   functions and serial drivers.
  208.  
  209.   For further info about the drivers, please contact Alan M. Friedman at
  210.   Intelligent Interfaces, Inc:
  211.  
  212.      alan@kether.intellint.com
  213.      AppleLink: D5620
  214.  
  215.   You can contact CSI at csi@applelink.apple.com (AppleLink: CSI).
  216.  
  217.  o Another is Paul Campell's Taniwha CommCard. This card does indeed work
  218.    with all versions of A/UX including 3.x.x. It has special support for
  219.    UUCP.  It has a few mysterious and not very important problems. It's an
  220.    excellent buy. The only problem is, it's not on the market anymore. If you
  221.    can get one used, though, it's worth getting. The one downside is that,
  222.    like Apple's ports, it won't SIMULTANEOUSLY support modem and hardware flow
  223.    control. It is immune to many of the nasty bugs which affect the built-in
  224.    serial ports, including the two (at least) which can crash the kernel.
  225.  
  226.  o Yet another is the Applied Engineering QuadraLink serial card. According
  227.    to sources, the board was super easy to setup and use. It also appears
  228.    very solid as far as performance.
  229.  
  230.    The AE QuadraLink card, like the CommCard and the Apple ports, can't do
  231.    both hardware handshaking and modem control at the same time. No hardware
  232.    patch kit will be developed for the AE card...
  233.  
  234. ===========================================
  235. D.09)  lpr printer problems with LW IIg|IIf
  236. -------------------------------------------
  237.  
  238. D.09)  I'm using a LaserWriter IIg with A/UX 3.x.x and whenever I print some-
  239.        thing to it through 'lpr', the first line of the page is cut off. Why?
  240.  
  241. This only shows up on versions of the IIg (and IIf) with less than 5MB RAM.
  242. The reason is because this makes the LW default to PhotoGrade-mode. You can
  243. do 2 things to fix this:
  244.  
  245.     1. Using the LaserWriter Utility program, disable PhotoGrade.
  246.        Since one of the main advantages of these LW's is PhotoGrade,
  247.        this option is kinda unpalatable.
  248.  
  249.     2. If you are _only_ using "Letter" mode under 'lpr', then you
  250.        can edit /usr/lib/ps/pstext.pro to include the following line
  251.        between "% RCSID:..." and "/StartPage...":
  252.  
  253.        %!PS-Adobe-1.0
  254.        % Z%Copyright Apple Computer 1987\tVersion 1.1 of pstext.pro on\
  255.          87/05/04 19:02:25
  256.        %%Creator: pstext
  257.        %%DocumentFonts: Courier
  258.        % RCSID: $Header: pstext.pro,v 2.1 85/11/24 12:19:55 shore Rel $
  259. ====>>>letter 
  260.        /StartPage{/sv save def 48 760 moveto}def
  261.  
  262. This will fix the problem and make it usable again.
  263.  
  264. ===============================
  265. D.10)  'tc' errors and blocking
  266. -------------------------------
  267.  
  268. D.10)  I'm trying to access my tape drive using 'tc' (with something like
  269.        "find . -print | cpio -o > /dev/rmt/tc1") but it doesn't work...
  270.  
  271. Except for 9-track magtapes, all I/O to tape drives associated with the 'tc'
  272. device files _must_ be blocked at 8k. The 'tcb' program does just that so
  273. that should be included. For example, to write:
  274.  
  275.     $ find . -print | cpio -o | tcb > /dev/rmt/tc1
  276.  
  277. And to read:
  278.  
  279.     $ tcb < /dev/rmt/tc1 | cpio -i
  280.  
  281. You can get better performance if you increase the buffer size (just make
  282. sure that it's a multiple of 8k). For example, you could use 'dd' as your
  283. blocking filter with a 'bs=10x8k'.
  284.  
  285. Jim Jagielski's replacement for 'tc' allows for 'tc' to use the tape drive's
  286. own physical block size as the logical block size for I/O. Doing so results
  287. in a bit of a performance hit so it isn't recommended for normal use. You
  288. should use the "mode" only if you need to read tapes written by 'st' or by
  289. another platform. Please note you are still limited to an I/O block size of
  290. at least the physical block size, which can be anything for 512 to 1024 to
  291. 8192 bytes.
  292.  
  293. %%% For more information about 'tc', please contact Jim via E-mail %%%
  294.  
  295. =========================================================
  296. D.11)  What CD-ROM drives are compatible with A/UX 3.x.x?
  297. ---------------------------------------------------------
  298.  
  299. The original Apple CD-ROM drive (CD SC) is 100% compatible with A/UX as is
  300. the newer CD-150. Older versions of the CD-300 (those with pre 1.8f ROMS)
  301. would cause problems with A/UX and would do little more than allow you to
  302. install A/UX, making it almost useless for day-to-day use. One of the fixes
  303. of 3.0.2 is _much_ better support for all versions of the CD-300, although
  304. Apple does suggest that you update the CD-ROM drive's ROMs with the latest
  305. version if you have problems. I've heard that you can get the latest ROMs by
  306. calling 1-800-SOS-APPL or seeing your Apple dealer. The following are also
  307. known to be 100% compatible (meaning you can use them to install A/UX as well
  308. as when running A/UX):
  309.  
  310.     The Toshiba XM3201, XM3301B XM3401B
  311.     DEC RRD42, RRD40 (LMSI CM-212)
  312.     Denon DRD 253
  313.     Sun CD-ROM (Sony CDU-8012?)
  314.     CD-Technologies Porta-Drive CD-ROM
  315.     Chinon CDA-431
  316.  
  317. 3.1 adds support for NEC CD-ROMs; previous versions of A/UX weren't able to
  318. work with these units due to their physical block size.
  319.  
  320. ==================================
  321. D.12)  Audio CD support under A/UX
  322. ----------------------------------
  323.  
  324. D.12)  I've tried to install the CD Remote extension to A/UX so that
  325.        I can play audio CD's, but it doesn't work...
  326.  
  327. At present, the default A/UX setup doesn't support audio CDs. Kelly King and
  328. Andrew Kass (at Apple), however, have written the "AUX SCSI Toolbox"
  329. extensions that emulates the Mac SCSI Manager. With this extension installed,
  330. you can run applications and drivers that talk to the Mac SCSI Manager,
  331. including the Apple CD-ROM driver! With this extension, you can listen to
  332. your audio CDs under A/UX! This is the latest version of the extension: 1.0b4.
  333.  
  334. "AUX SCSI Toolbox" is available via ftp on jagubox under:
  335.  
  336.    /pub/aux/apple.fixes/unsupported/3.0.x/SCSItlbx.tar.gz
  337.  
  338. Please read the included ReadMe before installing and using it.
  339.  
  340. ==================================================
  341. D.13)  What UNIX CD-ROM formats does A/UX support?
  342. --------------------------------------------------
  343.  
  344. Other than the "normal" A/UX SysV and UFS file system type, A/UX supports
  345. ISO-9660 file system format CD-ROMs. However, you can only access these CDs
  346. from the MacOS environment; you can't "mount" them in the normal UNIX-way. As
  347. distributed, A/UX doesn't include the needed Extensions that allow the MacOS
  348. Environment from recognizing these CDs. To fix this, you need to copy the
  349. following Extensions from the Apple CD-ROM Software disks (version 3.2 or
  350. later) to the System Folder of the user(s) that need access to these CDs:
  351.  
  352.    o Foreign File Access
  353.    o High Sierra File Access
  354.    o ISO 9660 File Access
  355.  
  356. The docs are a little blurry on this (even though it's specifically mentioned
  357. in Chapter 5 of the "Setting Up Accounts and Peripherals for A/UX") since they
  358. say that you don't need to add any _kernel_ resources...
  359.  
  360. One of A/UX's quirks is that all files on ISO-9660 CDs are "seen" as TEXT
  361. type files. This causes troubles with binary files since when you try to
  362. drag them over to the "/" disk, A/UX will perform it's \r->\n translation.
  363. To avoid this from happening, you can:
  364.  
  365.    1 Drag the file(s) over to a MacOS HFS disk. Then use ResEdit (or something
  366.      similar) to change the file Creator to "A/UX" and Type to "BIN " (note the
  367.      space!). Now you can drag the file over to "/".
  368.  
  369.    2 Use ResEdit to look at the NCOD resource in the "ISO 9660 File Access"
  370.      extension. Open the "Main" resource in NCOD. Now change the string
  371.      "TEXT" to "BIN " and "hscd" to "A/UX". Save, logout and login. This
  372.      changes things so that _all_ files on the CD-ROM appear as non-Text,
  373.      CommandShell files, so that A/UX will _not_ perform any translation.
  374.  
  375. Again, please note that A/UX will not recognize _any_ of the audio capability
  376. of CD-ROMs unless you add the "AUX SCSI Toolbox" extension described in Q&A
  377. #D.12.
  378.  
  379. ====================================================================
  380. D.14)  How can I add printers other than those available in Chooser?
  381. --------------------------------------------------------------------
  382.  
  383. <<ED: From a post by Antonio Ordonez (antonio@apple.com)>>
  384.  
  385. If the printer is in another zone, it is necessary to define the zone in
  386. which the printer is located with a full path name.  You can then "hardwire"
  387. a printer name including the zone for a particular printer queue.
  388.  
  389. The best way to do this is to make a copy the /usr/spool/lpd/AppleTalk
  390. directory and give it a name related to the printer we want to use. Modify
  391. the file ifilter/ofilter/nfilter  (it is the same file with 3 hard links) in
  392. this directory. Also modyfy the /etc/printcap file to create a new printer
  393. queue.
  394.  
  395. I will use my system as an example so please modify to reflect your
  396. situation.
  397.  
  398. The first thing to do is to create the new directory and put the correct
  399. files in it. NOTE that I am using mknod to create the pipe file.
  400.  
  401. mkdir Idaho
  402. chown daemon Idaho
  403. chgrp daemon Idaho
  404. cp AppleTalk/ifilter Idaho/ifilter
  405. cd Idaho
  406. ln ifilter ofilter
  407. ln ofilter nfilter
  408. mknod pipe p
  409. chown daemon *
  410. chgrp daemon *
  411.  
  412. In my case I have a printer called "Idaho Spooler" in the zone "SCV CAM2
  413. 2nd W"  while my system is on the zone "SCV CAM2 2nd E", so all I do is to
  414. modify the /usr/spool/lpd/Idaho/ifilter file (you can use vi or
  415. TextEditor)
  416. and change the line that defines the value for Printer from
  417.  
  418. Printer=`basename "cwd"`
  419.         -to-
  420. Printer="Idaho Spooler:LaserWriter@SCV CAM2 2nd W"
  421.  
  422. In the /etc/printcap file I copy the entry for AppleTalk (all six lines) and
  423. change any reference to AppleTalk to the name I used for my new directory.
  424. Again, in my case I used "Idaho" as the directory name so my /etc/printcap
  425. file looks like:
  426.  
  427.   #
  428.   # pragma ident "@(#)lpr:printcap        5.4 90/03/27 "
  429.   #
  430.   # Copyright 1990 Apple Computer, Inc.
  431.   # All Rights Reserved.
  432.   ##
  433.   # Remote AppleTalk printer (selected by Chooser)
  434.   # For an AppleTalk printer which doesn't support PostScript remove last 2
  435.   names.
  436.   lp|at|AppleTalk|postscript|PostScript:\
  437.           :lp=/dev/null:\
  438.           :if=/usr/spool/lpd/AppleTalk/ifilter:\
  439.           :of=/usr/spool/lpd/AppleTalk/ofilter:\
  440.           :nf=/usr/spool/lpd/AppleTalk/nfilter:\
  441.           :sd=/usr/spool/lpd/AppleTalk:
  442.   lp2|Idaho:\
  443.           :lp=/dev/null:\
  444.           :if=/usr/spool/lpd/Idaho/ifilter:\
  445.           :of=/usr/spool/lpd/Idaho/ofilter:\
  446.           :nf=/usr/spool/lpd/Idaho/nfilter:\
  447.           :sd=/usr/spool/lpd/Idaho:
  448.  
  449. After all these steps are completed restart the printer queue with the command
  450.  
  451.     lpc restart all
  452.  
  453. Now you should be able to send a print job to the printer in the other zone
  454. with the command
  455.  
  456.     lpr -Plp2 /etc/passwd
  457.  
  458. or
  459.  
  460.     lpr -PIdaho /etc/passwd
  461.  
  462. Hope this helps
  463.  
  464. ============================================================
  465. D.15)  What 3rd party accelerators are compatible with A/UX?
  466. ------------------------------------------------------------
  467.  
  468. For the most part, all DayStar Digital accelerators are compatible with A/UX
  469. 3.0 even if their controlling CDEVs don't work under A/UX (the accelerator
  470. must be enabled with the CDEV before booting A/UX). However, their 040
  471. accelerators do NOT work under A/UX. In fact, except for Apple's own Quadra
  472. 700 Logic Board Upgrade, there are no 040 accelerators that work (i.e. don't
  473. crash) under A/UX.
  474.  
  475. There has been at least 1 report of the DayStar-accelerated MacII not working
  476. under 3.0.2... it's possible that 3.0.2 is more sensitive to timing than 3.0
  477. was...
  478.  
  479. According to Daystar Digital, the DayStar QuadraCache is _not_ compatible
  480. with A/UX. DayStar is working on a fix... Nonetheless, there are a number of
  481. people (including people at Apple) who are using these cache cards with no
  482. problems.
  483.  
  484. << ED: This is kinda skimpy, but I'd thought I'd start it up. EMail me
  485.        your list >>
  486.  
  487. ==============================================================
  488. D.16)  Will the old serial HP DeskWriter work under A/UX?
  489. --------------------------------------------------------------
  490.  
  491. No, it won't... You need to use AppleTalk to use it under A/UX.
  492.  
  493. ================================================
  494. D.17)  How can I use a HP DeskWriter under A/UX?
  495. ------------------------------------------------
  496.  
  497. For the answer, snag a copy of DeskWriter.txt which is available via anon-
  498. ftp on jagubox in /pub/aux.
  499.  
  500. ======================================
  501. D.18)  Does A/UX support 24-bit color?
  502. --------------------------------------
  503.  
  504. Yes.
  505.  
  506. There is one major caveat, that will hopefully be addressed in future
  507. versions. On startup, A/UX reinitializes all hardware drivers, including
  508. the video-drivers; as a result, most accelerated 24-bit cards (all third-
  509. party cards known to date, as well as Apple's old 8*24 GC card) will be
  510. reinitialized to run in non-accelerated mode. You'll still get 24-bit video,
  511. but depending on your hardware, it may be painfully slow.
  512.  
  513. This could be solved by better driver support from the vendors of accelerated
  514. video cards. Certain vendors have been promising such support for awhile now.
  515.  
  516. The best hardware to run A/UX with 24-bit video enabled are currently
  517. the Quadra 700, 900, and 950, whose internal video can be populated with
  518. enough VRAM to support 24-bit color (note that the Q800 cannot do this !).
  519. Performance is considered good under A/UX by many users.
  520.  
  521. The following is a list of 24-bit cards that readers have reported work with
  522. A/UX from personal experience. It is NOT a complete list; there have been no
  523. reports of cards that work under MacOS but not A/UX (excepting the caveat
  524. detailed above):
  525.  
  526.     Apple 8*24, 8*24GC
  527.     Quadra 700, 900, 950 internal video
  528.     PrecisionColor PRO 24xp
  529.     RasterOps 24STV, Paintboard li
  530.     Radius 24XP, 24XK
  531.  
  532. =================================================
  533. D.19)  What's the specifics on the AWS95 PDS Card?
  534. -------------------------------------------------
  535.  
  536. The AWS95 PDS Card (known as "Pisces") has two main functional additions to
  537. the Q950. The first is that it includes an external level-2 cache for the
  538. Quadra's 68040. The cache size is 128K, but this can be increased with Apple
  539. provided SRAM upgrade kits. The use of a L2 cache increases the base perfor-
  540. mance of the Q950.
  541.  
  542. The second capability that Pisces includes is the addition of two additional
  543. upgraded SCSI buses. Pisces fully supports Direct Memory Access (DMA) on these
  544. SCSI buses. This can greatly increase SCSI throughput by offloading SCSI
  545. operations to the PDS card. The card supports active termination and negation
  546. on the 2 SCSI DMA buses, improving signal quality and integrity.
  547.  
  548. =================================================
  549. D.20)  What are the specifics of SCSI under A/UX?
  550. -------------------------------------------------
  551.  
  552. SCSI under A/UX is SCSI-1/CCS and not SCSI-2. However, A/UX can use most
  553. SCSI-2 devices. Problems will arise on some SCSI-2 disks if their Error
  554. Correction Mode Pages are incorrect (See Q&A D.04). A/UX supports SCSI
  555. connect/disconnect which results in more efficient use of the SCSI bus.
  556. Finally, A/UX provides asynchronous I/O as well.
  557.  
  558. =========================================================
  559. D.21)  I can't get my LaserJet 4M to work reliably. Help!
  560. ---------------------------------------------------------
  561.  
  562. Bad news... for some reason, if the LaserJet is connected _directly_ to a
  563. Q700 running A/UX via AppleTalk then it won't work. If you have a router or
  564. something similar between the two it'll work like a hose. It looks like it's
  565. most probably a 4M ROM bug and I hear that HP is "working" on a fix.
  566.  
  567. ==========================================================
  568. D.22)  Does the Apple Adjustable Keyboard work under A/UX?
  569. ----------------------------------------------------------
  570.  
  571. No it doesn't... This is due to the way the Adjustable keyboard actually
  572. works and the fact that A/UX doesn't fully support the ADB Manager. :(
  573.  
  574.  
  575.  
  576. :::::::::::::::::::::::::::::::::::
  577. ::::: PORTING AND PROGRAMMING :::::
  578. :::::::::::::::::::::::::::::::::::
  579.  
  580. ================================================================
  581. P.01)  How come rn|elm|less|etc... act weird concerning signals?
  582. ----------------------------------------------------------------
  583.  
  584. Well, it's not really them at all. Many people have found that more than a
  585. few ports require the addition of the 'set42sig()' call to enable BSD 4.2
  586. signal delivery. The best place to add this is as the 1st executable statement
  587. under
  588.  
  589.     "main() {"
  590.  
  591. Another point about porting applications: A/UX's 'cc' does provide "strict"
  592. BSD, SystemV and Posix libraries. If you are porting a BSD program, you can
  593. enable BSD "emulation" by adding the "-ZB -lbsd" options to your 'cc' command
  594. line. In fact, using just the '-lbsd' option alleviates the need for adding
  595. the 'set42sig()' call mentioned above and is, in many cases, the suggested
  596. option. Compiling with gcc also helps out a great deal.
  597.  
  598. ===================================
  599. P.02)  Is X11R5 available for A/UX?
  600. -----------------------------------
  601.  
  602. Yes! Thomas Eberhardt has ported X11R5 and the binaries (which includes full
  603. shared libraries) for A/UX are available via anon-ftp on wuarchive.wustl.edu
  604. under systems/aux/X11R5 (our overseas friends should get it from
  605. ftp.uni-stuttgart.de due to US Export regs).  Patches for X11R5 compiled with
  606. gcc are also available. It looks like it results in a nice 10-20% increase in
  607. performance! Thomas had "taken over" X11R5 with his new port; John Coolidge
  608. used to do it...
  609.  
  610. %%% For more information about X11R5 for A/UX, E-mail Thomas %%%
  611.  
  612. ====================================
  613. P.03)  FSF GNU doesn't support A/UX?
  614. ------------------------------------
  615.  
  616. P.03)  I've noticed that FSF GNU doesn't support A/UX. Does that mean
  617.        I'll miss out on all the neat Gnu-stuff like gcc?
  618.  
  619. Although it's true that FSF is "boycotting" Apple and A/UX (FSF doesn't like
  620. Apple's predisposition of suing to protect "look and feel"), ports of most
  621. Gnu applications are available. Of particular interest is gcc version 2.5.7
  622. which has been ported by John Coolidge (coolidge@apple.com) and is available
  623. via anon-ftp on wuarchive.wustl.edu in systems/aux/gnu. The binaries, sources
  624. and diffs are all available.
  625.  
  626. GCC version 2.5.7 for A/UX has been ported and is available... Highly
  627. recommended!
  628.  
  629. As a nice compliment to using GCC, gdb (4.9) is also available.
  630.  
  631. %%% For more info about gcc for A/UX, please contact John via E-mail %%%
  632.  
  633. =======================================
  634. P.04)  Mail reader problems under A/UX
  635. ---------------------------------------
  636.  
  637. P.04)  I've ported Elm (or other mail reader) and it doesn't seem to work.
  638.        Why?
  639.  
  640. It seems most likely that the reason is because they attempt to use a
  641. different file locking scheme that /bin/mail does. Pre-3.0 versions of mail
  642. used 'flock' style file locking. 3.x.x now uses the '.lock' scheme for mail
  643. file locking. Elm 2.4.X requires that both flock and .lock be enabled. Elm
  644. 2.3.X requires _only_ .lock locking.
  645.  
  646. =============================================
  647. P.05)  What languages are available for A/UX?
  648. ---------------------------------------------
  649.  
  650. A/UX comes with a C compiler ('cc'), a FORTRAN-77 compiler ('f77') as well
  651. as an assembler ('as'), SNOBOL ('sno') and a kinda-basic interpreter ('bs').
  652. 'cc' is a nice, stable, if not-too-quick compiler. 'f77' is a true FORTRAN-77
  653. compiler and appears quite workable. I've not used 'sno' (I couldn't recall
  654. how to program in SNOBOL if my life depended on it :) or 'bs'.
  655.  
  656. If you are doing any work in C, then it would be well worth it to get a copy
  657. of the GNU C compiler ('gcc') (see Q&A #P.03). gcc is K&R and ANSI compatible
  658. so if you are doing ANSI work you'll need it. Apple also has an ANSI C
  659. compiler ('c89') that you can buy. It's available on the "A/UX Developer's
  660. Toolkit CD" from APDA. There is also at least one other 3rd-party C compiler
  661. out there, but I can't recall it's name right now. gcc is free; c89 runs
  662. about $800. Both include C++ capabilities.
  663.  
  664. There are also 2 very good 3rd-party FORTRAN compilers: NKR FORTRAN and Absoft
  665. MacFORTRAN II. In my opinion, MacFORTRAN II is the better product...  it has
  666. finer compiler control, a wide number of compatibility options (such as VAX
  667. FORTRAN) and excellent speed. If you do order MFII, be _sure_ to get the A/UX
  668. version. They also sell an MPW version that will work under A/UX but it's
  669. run under, you guessed it, MPW. The A/UX version is a true "Unix" compiler
  670. and it's optimized for A/UX. Both MFII and NKR FORTRAN run about $500-$600.
  671.  
  672. Oasys sells 3 compiler packages: C, C++ and FORTRAN. All the compilers are
  673. based on the GreenHills compilers which are known to be robust and fast.
  674. However, the Oasys packages are expensive, running about $2000 per language
  675. (although you do get assemblers and linker/loaders with the package).  Unisoft
  676. used to distribute their "Optimizing Compilers" (FORTRAN and C) for A/UX,
  677. but they are no longer available... Pity, because they also were based on
  678. GreenHills and were quite nice.
  679.  
  680. At present, I know of no true Pascal compilers for A/UX.
  681.  
  682. Finally, if you are doing program development, then you'll need a good
  683. debugger. As described above in "List of ports...", gdb has been ported if
  684. you would prefer using something other than sdb or dbx, which are included
  685. with A/UX. If you are using FORTRAN, then Absoft also makes an excellent
  686. debugger which has been fine-tuned to work with MFII (it also does quite well
  687. with C); it's called FX. It has two interfaces, character and Motif, and is
  688. quite powerful.
  689.  
  690. =======================================
  691. P.06)  Is OSF/Motif available for A/UX?
  692. ---------------------------------------
  693.  
  694. The only source for OSF/Motif (1.1.4) for A/UX that I know of is:
  695.  
  696.    Integrated Computer Solutions
  697.    201 Broadway
  698.    Cambridge, MA 02139
  699.    617-547-0510
  700.  
  701. However, they have stopped producing this and have since stopped support for
  702. A/UX OSF/Motif. They may still have a few copies of it available, so if you
  703. don't mind using unsupported software, give them a call.
  704.  
  705. If you have, or can get, the actual source code for Motif then the following
  706. will be of some help: 1.1.4 compiles with minimal changes to the source using
  707. 'cc' and works "great." However, the source for 1.2.2 makes calls to various
  708. XIM multi-character routines, leaving many unresolved externals when linking.
  709. Now, if someone ported X11R5 and left the XIM routines intact, then maybe
  710. compiling and linking 1.2.2 would go off without a hitch... Any takers??
  711.  
  712. ===========================
  713. P.07)  Looking for 'ranlib'
  714. ---------------------------
  715.  
  716. P.07)  While trying to port some software, the Makefile looks
  717.        for a program called 'ranlib' and dies when it can't
  718.        find it. What is it and where can I get it.
  719.  
  720. 'ranlib' is a program that increases the efficiency of accessing and using
  721. archives (*.a files). A/UX's 'ar' already does this, so it isn't needed.
  722. To get around this, do something like:
  723.  
  724.     ln /bin/true /bin/ranlib
  725.  
  726. You could also use '/bin/touch' but the above will (hopefully) take care of
  727. cases when ranlib is called with options. If you want to put 'ranlib'
  728. somewhere else, then that's OK. If the location is a different file system,
  729. then you'll need to use a symbolic link:
  730.  
  731.     ln -s /bin/true /usr2/local/bin/ranlib
  732.  
  733.  
  734.  
  735. :::::::::::::::::::::::::
  736. ::::: COMMUNICATION :::::
  737. :::::::::::::::::::::::::
  738.  
  739. ==================================
  740. C.01)  'getty' problems under A/UX
  741. ----------------------------------
  742.  
  743. C.01)  I'm unable to start a getty process on a built-in serial port. When
  744.        I use 'setport' to enable the port, I get a "no such device" error.
  745.        Configuring /etc/inittab to respawn getty on the port has no effect.
  746.  
  747. AppleTalk is probably enabled for the port. The getty process can be started
  748. temporarily by turning off AppleTalk via A/UX's Finder Chooser and THEN
  749. using the 'setport' command.
  750.  
  751. You can permanently disable AppleTalk by reconfiguring the kernel with
  752. "newconfig noappletalk". If you wish to keep the drivers installed in the
  753. kernel but still want to "permanently" disable AppleTalk, you can edit
  754. /etc/startup to prevent AppleTalk from initializing and /etc/inittab can be
  755. editted to start getty. (NOTE: /etc/startup is regenerated by newconfig so
  756. you'll have to redo this if you reconfigure the kernel).
  757.  
  758. If you don't have an EtherTalk card installed, then you can also modify
  759. /etc/appletalkrc to point to "ethertalk0" instead of "localtalk0". Doing
  760. this stops AppleTalk from bothering the serial port because it tries to use
  761. the non-existant card.
  762.  
  763. ========================================
  764. C.02)  sendmail problems with /etc/hosts
  765. ----------------------------------------
  766.  
  767. C.02)  I am using and depending on /etc/hosts to do all my hostname resolving
  768.        (i.e. not using named or /etc/resolv.conf). How come I can't mail
  769.        to other hosts, but I can ping|ftp|etc... them?
  770.  
  771. Well, the problem is actually with sendmail (in /usr/lib). sendmail (under
  772. A/UX 2.0 and later) assumes the use of a nameserver. Pre-2.0 versions were
  773. "adjusted" to look in /etc/hosts if any nameserver call failed (which it
  774. would if it wasn't running, of course :).
  775.  
  776. Jim Jagielski (jim@jagubox.gsfc.nasa.gov) has hacked sendmail 5.65 for A/UX
  777. to have it also check /etc/hosts. The source code is available via anon-ftp on
  778. jagubox.
  779.  
  780. You may also want to upgrade to smail 3.1.28. smail is a very powerful yet
  781. easy to configure (and maintain) replacement for sendmail. It can both query
  782. the NameServer as well as look in /etc/hosts to "interpret" hostnames. The
  783. required A/UX-related diffs and patches, which were written by Bob Denny
  784. (denny@alisa.com) are available on jagubox.
  785.  
  786. %%% For more info, contact Jim %%%
  787.  
  788. =================================================
  789. C.03)  "not a typewriter" error message with mail
  790. -------------------------------------------------
  791.  
  792. C.03)  When I try to mail something, I get the following error message:
  793.        "Cannot read frozen config file: not a typewriter". What's wrong?
  794.  
  795. This message is produced by sendmail (/usr/lib/sendmail) when it's frozen
  796. configuration file (/usr/lib/sendmail.fc) is unusable (as it is in the A/UX
  797. distribution which has it as a 0-byte file). To create a "new" frozen file
  798. of your present sendmail.cf file (assuming that it's good), type:
  799.  
  800.     $ /usr/lib/sendmail -bz
  801.  
  802. (the sendmail daemon, if it exists, must be killed 1st).
  803.  
  804. ============================
  805. C.04)  Remote logins on tty0
  806. ----------------------------
  807.  
  808. C.04)  How do I set up my Mac and A/UX to enable remote logins via a modem
  809.        on tty0?
  810.  
  811. First of all, you must edit /etc/inittab to start getty on tty0 using mo_2400:
  812.  
  813.     00:2:respawn:/etc/getty -u -t 60 tty0 mo_2400
  814.  
  815. Make sure that your modem is set to be quiet, to not return result codes and
  816. to not echo back. It must also reset on DTR being dropped ("atq1e0&d3" will
  817. achieve this for most Hayes-compatible modems except certain (all) USR
  818. modems). Your modem must also raise DCD on connection ("at&c1") in order to
  819. have Dialup security (i.e. when the line is closed, HangUp the process.  This
  820. means that MODEM flow control must be specified in gettydefs). You then save
  821. these changes using the "at&w" sequence. Finally, to make it autoanswer, be
  822. sure to add "ats0=1&w".
  823.  
  824. Make sure that the modem cable is correctly configured (NOTE: This is for
  825. Dialup Security!):
  826.  
  827.     Mac       Modem
  828.     --------------------
  829.     1 (HskO)  20 (DTR)
  830.               4  (RTS)  <- yep... it gets sent to Pin 20 & 4
  831.     2 (HskI)  8  (DCD)
  832.     3 (TxD-)  2  (TxD)
  833.     4 (GDN)   7  (Sgnd)
  834.     5 (RxD-)  3  (RxD)
  835.     6 NO CONNECT
  836.     7 NO CONNECT
  837.     8 (RxD+)  7  (Sgnd)  <- this is right, it gets tied to Mac pin 4 too.
  838.  
  839. If you mess up pin 8 things can get so flaky that you'll never figure out
  840. what's going on. You see, by grounding pin 8, you make the modem port truly
  841. RS-232 compatible. If not grounded, the port will use the RS-422 standard,
  842. which can cause lots of problems. For more info about pinouts and cable
  843. pinouts, check out "/usr/lib/uucp/README".
  844.  
  845. Please note that getty is the bidirectional version of getty, which is
  846. sometimes known as uugetty. Thus, you can have dial in and dial out at the
  847. same time on the same port. You should be using at least version 1.16 of HDB
  848. (see above: "known bugs" and Q&A #A.16)
  849.  
  850. ==================================
  851. C.05)  'talk' and other UNIX boxes
  852. ----------------------------------
  853.  
  854. C.05)  How come I can't use 'talk' with some of the other Unix boxes out
  855.        there, and they can't talk to me?
  856.  
  857. The reason why is because there are two versions of talk (and it's daemon
  858. talkd) out there. A/UX uses the BSD 4.2 version. Others use the 4.3 version.
  859. The two aren't compatible and don't even talk on the same port. If you try
  860. to talk to someone and all you get is a "Checking for invitation..." message
  861. then it's because the machine you're trying to access is using 4.3.
  862.  
  863. Steve Green (xrsbg@dirac.gsfc.nasa.gov) has ported the 4.3 versions of talk
  864. and talkd (now renamed ntalk and ntalkd for A/UX) to overcome this snag. You
  865. can have both versions available and running with no problems. The port is
  866. available via anon-ftp on jagubox.gsfc.nasa.gov.
  867.  
  868. =====================================================
  869. C.06)  How can I convince A/UX to forward IP packets?
  870. -----------------------------------------------------
  871.  
  872. You will need to use 'adb' to adjust the A/UX kernel to enable IP forwarding.
  873. As root, and in single-user mode, follow this (A/UX responses in ""):
  874.  
  875.     $ adb -w -k /unix /dev/kmem
  876.     "a.out file = /unix (COFF format)"
  877.     "core file = /dev/kmem"
  878.     "ready"
  879.     ipforwarding?D
  880.     "ipforwarding:    0"
  881.     ipforwarding?W 1
  882.     "ipforwarding:  0x0     =     0x1"
  883.     $w
  884.     $q
  885.  
  886. And reboot.
  887.  
  888. You'll need to redo this whenever the kernel is rebuilt (like via 'newunix')
  889.  
  890. =================================
  891. C.07)  Is PPP available for A/UX?
  892. ---------------------------------
  893.  
  894. Unfortunately, I know of no port of PPP for A/UX :(
  895.  
  896. ================================================
  897. C.08)  How can I change the MTU value for CSlip?
  898. ------------------------------------------------
  899.  
  900. You will need to use 'adb' to adjust either the kernel or the CSlip driver to
  901. change this value.  As root, and in single-user mode, follow this to adjust
  902. the kernel (A/UX responses in ""):
  903.  
  904.     $ adb -w -k /unix /dev/kmem
  905.     "a.out file = /unix (COFF format)"
  906.     "core file = /dev/kmem"
  907.     "ready"
  908.     slip_mtu?d
  909.     "slip_mtu:    296"
  910.     slip_mtu?w <<hex value of number you want it to be>>
  911.     "ipforwarding:  0x0     =     0x<<the value>>"
  912.     $w
  913.     $q
  914.  
  915. And reboot.
  916.  
  917. You'll need to redo this whenever the kernel is rebuilt (like via 'newunix')
  918.  
  919. If you prefer to instead edit the CSlip driver, then follow this:
  920.  
  921.     cd /etc/install.d/boot.d
  922.     $ adb -w cslip
  923.     "a.out file = cslip (COFF format)"
  924.     "cannot open core file"
  925.     "ready"
  926.     slip_mtu?d
  927.     "slip_mtu:    296"
  928.     slip_mtu?w <<hex value of number you want it to be>>
  929.     "ipforwarding:  0x0     =     0x<<the value>>"
  930.     $w
  931.     $q
  932.  
  933. Now run 'newconfig -v' and reboot.
  934.  
  935.  
  936.  
  937. ::::::::::::::::::::::::::::
  938. ::::: ERRORS EXPLAINED :::::
  939. ::::::::::::::::::::::::::::
  940.  
  941. =======================================
  942. E.01)  backspace erases prompt problems
  943. ---------------------------------------
  944.  
  945. E.01)  How do I keep command lines that I edit with "backspace" from erasing
  946.        the prompt?
  947.  
  948. This behavior is due to the tty driver under A/UX. The BSD tty driver (which
  949. A/UX doesn't use) handles this, whereas the SysV driver doesn't. If you are
  950. running 'ksh' then you can "set -o viraw" to prevent this from happening.
  951. As far as I know, there are no work-arounds for 'sh' or 'csh'. ('tcsh' and
  952. 'bash' do not suffer from this problem... )
  953.  
  954.  
  955. ====================================
  956. E.02)  'xinit'|'startx' server error
  957. ------------------------------------
  958.  
  959. E.02)  Whenever I try to run xinit (or startx) from the CommandShell I get
  960.        a fatal server error. Why?
  961.  
  962. The reason why is because both X and the CommandShell want _complete_ control
  963. over your Mac (display, keyboard and mouse). So, when you try to start one
  964. while running the other, you'll get into trouble. You need to start X either
  965. from the Console Emulator Mode or by choosing it as your "session type" from
  966. the Login screen (This session type will be available only if your installed
  967. Apple's X or have installed John Coolidge's 'sessiontypes' for X11R5).
  968.  
  969. ================================================
  970. E.03)  "fcntl: local lock manager" error message
  971. ------------------------------------------------
  972.  
  973. E.03)  I keep on getting the following error message on the Console:
  974.        "fcntl: local lock manager not registered". What's going on?
  975.  
  976. This is printed out whenever your kernel is configured for NFS and a file-
  977. lock is attempted (as when sending Email) but the NFS lock daemon (rpc.lockd)
  978. isn't running. This is most probably due to the fact that it wasn't started
  979. in /etc/inittab. The fix is simple: enable rpc.lockd (and it's companion
  980. rpc.statd) in /etc/inittab as follows:
  981.  
  982.    nfs5:2:wait:/etc/rpc.statd   # set to "wait" for NFS status monitor
  983.    nfs6:2:once:/etc/rpc.lockd   # set to "once" for NFS lock manager
  984.  
  985. and either Restart A/UX or simply type 'init q'.
  986.  
  987. ===============================================
  988. E.04)  "xterm: no available ptys" error message
  989. -----------------------------------------------
  990.  
  991. E.04)  When I try to startup 'xterm', I get the following error
  992.        message: "xterm: no available ptys"... What gives?
  993.  
  994. There are three possible solutions:
  995.  
  996.     1. Make sure that there are ptys configured into the
  997.        kernel... Use 'kconfig' to check that NPTY is non-0
  998.     2. Switch to X11R5... This seems to happen to some users
  999.        running Apple's X11...
  1000.     3. For at least one user, copying the /usr/lib/X11/xterm*.tic files
  1001.        to /usr/lib/terminfo/x/xterm(s) worked...
  1002.  
  1003. ==================================
  1004. E.05)  ps|pstat only work for root
  1005. ----------------------------------
  1006.  
  1007. E.05)  'ps' and 'pstat' only seem to work for root. If anyone else tries
  1008.        these commands, they get a "no mem" error message. What's wrong?
  1009.  
  1010. Both these commands require read access to /dev/kmem, which is not allowed
  1011. for regular users. Thus, the programs require that they be suid or sgid to
  1012. the user or group that can read /dev/kmem. See if this is true and fix if
  1013. not.
  1014.  
  1015. //////////////////////  END OF PART 3 OF 3  \\\\\\\\\\\\\\\\\\\\\\
  1016.  
  1017. =====================================
  1018. **** Author's/Editor's Signature ****
  1019. -------------------------------------
  1020.  
  1021.  
  1022. -- 
  1023. #include <std/disclaimer.h>
  1024.     Jim Jagielski               |  "Is this something you can share with
  1025.     jim@jagubox.gsfc.nasa.gov   |   the rest of us Amazing Larry!!??"
  1026.     NASA/GSFC, Code 734.4       |                  Pee Wee
  1027.     Greenbelt, MD 20771         |
  1028.